export const riskStatusOption = {
  color: ['#14c5ee'],
  tooltip: {
    trigger: 'axis'
  },
  xAxis: {
    type: 'category',
    data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
    axisTick: {
      show: false // 隐藏X轴刻度线
    },
    splitLine: {
      show: false // 隐藏X轴网格线
    },
    axisLine: {
      lineStyle: {
        color: '#00FFFF' // 更改x轴线的颜色为红色
      }
    }
  },
  yAxis: {
    type: 'value',
    axisTick: {
      show: false // 隐藏Y轴刻度线
    },
    splitLine: {
      show: false // 隐藏X轴网格线
    },
    axisLine: {
      lineStyle: {
        color: '#00FFFF' // 更改x轴线的颜色为红色
      }
    }
  },
  series: [
    {
      data: [120, 200, 150, 80, 70, 110, 130],
      type: 'bar',
      barWidth: '15%'
    }
  ]
};
export const topOption = {
  color: ['#14c5ee', '#0655cc'],
  tooltip: {
    trigger: 'axis',
    axisPointer: {
      type: 'shadow'
    }
  },
  legend: {
    textStyle: {
      color: '#fff'
    } // 图例文字颜色
  },
  grid: {
    left: '3%',
    right: '4%',
    bottom: '3%',
    containLabel: true
  },
  xAxis: {
    type: 'category',
    data: ['Brazil', 'Indonesia', 'USA', 'India', 'China', 'World'],
    axisTick: {
      show: false // 隐藏X轴刻度线
    },
    splitLine: {
      show: false // 隐藏X轴网格线
    },
    axisLine: {
      lineStyle: {
        color: '#00FFFF' // 更改x轴线的颜色为红色
      }
    }
  },
  yAxis: {
    type: 'value',
    axisTick: {
      show: false // 隐藏Y轴刻度线
    },
    splitLine: {
      show: false // 隐藏X轴网格线
    },
    axisLine: {
      lineStyle: {
        color: '#00FFFF' // 更改x轴线的颜色为红色
      }
    }
  },
  series: [
    {
      name: '报警数量',
      type: 'bar',
      data: [18203, 23489, 29034, 104970, 131744, 630230]
    },
    {
      name: '安装数量',
      type: 'bar',
      data: [19325, 23438, 31000, 121594, 134141, 681807]
    }
  ]
};
export const CountyOption = {
  color: ['#14c5ee'],
  tooltip: {
    trigger: 'axis'
  },
  xAxis: {
    type: 'category',
    data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
    axisTick: {
      show: false // 隐藏X轴刻度线
    },
    splitLine: {
      show: false // 隐藏X轴网格线
    },
    axisLine: {
      lineStyle: {
        color: '#00FFFF' // 更改x轴线的颜色为红色
      }
    }
  },
  yAxis: {
    type: 'value',
    axisTick: {
      show: false // 隐藏Y轴刻度线
    },
    splitLine: {
      show: false // 隐藏X轴网格线
    },
    axisLine: {
      lineStyle: {
        color: '#00FFFF' // 更改x轴线的颜色为红色
      }
    }
  },
  series: [
    {
      data: [120, 200, 150, 80, 70, 110, 130],
      type: 'bar',
      barWidth: '15%'
    }
  ]
};
export const AlarmCountyOption = {
  color: ['#14c5ee'],
  tooltip: {
    trigger: 'axis'
  },
  xAxis: {
    type: 'category',
    data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
    axisTick: {
      show: false // 隐藏X轴刻度线
    },
    splitLine: {
      show: false // 隐藏X轴网格线
    },
    axisLine: {
      lineStyle: {
        color: '#00FFFF' // 更改x轴线的颜色为红色
      }
    }
  },
  yAxis: {
    type: 'value',
    axisTick: {
      show: false // 隐藏Y轴刻度线
    },
    splitLine: {
      show: false // 隐藏X轴网格线
    },
    axisLine: {
      lineStyle: {
        color: '#00FFFF' // 更改x轴线的颜色为红色
      }
    }
  },
  series: [
    {
      data: [120, 200, 150, 80, 70, 110, 130],
      type: 'bar',
      barWidth: '15%'
    }
  ]
};
export const CountyAndHouseOption = {
  color: ['#ee6666', '#14c5ee'],
  tooltip: {
    trigger: 'axis',
    axisPointer: {
      type: 'shadow'
    },
    formatter: function (params: any) {
      let result = params[0].name + '<br/>';
      params.forEach((param: any) => {
        result += param.marker + param.seriesName + ': ' + param.value + '<br/>';
      });
      return result;
    }
  },
  legend: {
    textStyle: {
      color: '#fff'
    }
  },
  grid: {
    left: '3%',
    right: '4%',
    bottom: '3%',
    containLabel: true
  },
  xAxis: {
    type: 'category',
    data: [],
    axisTick: {
      show: false
    },
    splitLine: {
      show: false
    },
    axisLine: {
      lineStyle: {
        color: '#00FFFF'
      }
    },
    axisLabel: {
      color: '#fff',
      rotate: 45
    }
  },
  yAxis: {
    type: 'value',
    axisTick: {
      show: false
    },
    splitLine: {
      show: false
    },
    axisLine: {
      lineStyle: {
        color: '#00FFFF'
      }
    },
    axisLabel: {
      color: '#fff'
    }
  },
  series: [
    {
      name: '报警数量',
      type: 'bar',
      stack: 'total',
      data: [],
      barWidth: '50%'
    },
    {
      name: '设备数量',
      type: 'bar',
      stack: 'total',
      data: [],
      barWidth: '50%'
    }
  ]
};
export const AlarmByTimeOption = {
  color: ['#14c5ee'],
  tooltip: {
    trigger: 'axis'
  },
  xAxis: {
    type: 'category',
    data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
    axisTick: {
      show: false // 隐藏X轴刻度线
    },
    splitLine: {
      show: false // 隐藏X轴网格线
    },
    axisLine: {
      lineStyle: {
        color: '#00FFFF' // 更改x轴线的颜色为红色
      }
    }
  },
  yAxis: {
    type: 'value',
    axisTick: {
      show: false // 隐藏Y轴刻度线
    },
    splitLine: {
      show: false // 隐藏X轴网格线
    },
    axisLine: {
      lineStyle: {
        color: '#00FFFF' // 更改x轴线的颜色为红色
      }
    }
  },
  series: [
    {
      data: [150, 230, 224, 218, 135, 147, 260],
      type: 'line'
    }
  ]
};
